//
//  History.m
//  CslpodDictionary
//
//  Created by gtts on 13-4-24.
//  Copyright (c) 2013年 cslpod. All rights reserved.
//

#import "History.h"

@implementation HistoryDAO

const static NSString* tablename = @"dic_history";//表名

+ (Class)getBindingModelClass
{
    return [History class];
}

+(const NSString *)getTableName
{
    return tablename;
}

@end

@implementation History
@synthesize historyID;
@synthesize recordList;
@synthesize createDate;

- (id)init
{
    if (self = [super init]) {
        self.primaryKey = @"historyID";
    }
    return self;
}

- (id)initWithJsonDictionary:(NSDictionary *)dic
{
    if (self = [super init]) {
        self.historyID = [dic objectForKey:@"historyID"];
        self.recordList = [dic objectForKey:@"recordList"];
        self.createDate = [dic objectForKey:@"createDate"];
    }
    return self;
}

@end
